package com.ruoyi.system.domain.sys;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.model.BaseModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 对象存储配置对象 sys_oss_config
 *
 * @author ruoyi
 * @date 2024-03-05
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_oss_config")
public class SysOssConfig extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 主建
     */
    @Excel(name = "主建", sort = 0)
    @TableId(value = "oss_config_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long ossConfigId;

    /**
     * 配置key
     */
    @Excel(name = "配置key", sort = 1)
    private String configKey;

    /**
     * accessKey
     */
    @Excel(name = "accessKey", sort = 2)
    private String accessKey;

    /**
     * 秘钥
     */
    @Excel(name = "秘钥", sort = 3)
    private String secretKey;

    /**
     * 桶名称
     */
    @Excel(name = "桶名称", sort = 4)
    private String bucketName;

    /**
     * 前缀
     */
    @Excel(name = "前缀", sort = 5)
    private String prefix;

    /**
     * 访问站点
     */
    @Excel(name = "访问站点", sort = 6)
    private String endpoint;

    /**
     * 自定义域名
     */
    @Excel(name = "自定义域名", sort = 7)
    private String domain;

    /**
     * 是否https（Y=是,N=否）
     */
    @Excel(name = "是否https（Y=是,N=否）", sort = 8)
    private String isHttps;

    /**
     * 域
     */
    @Excel(name = "域", sort = 9)
    private String region;

    /**
     * 桶权限类型(0=private 1=public 2=custom)
     */
    @Excel(name = "桶权限类型(0=private 1=public 2=custom)", sort = 10)
    private String accessPolicy;

    /**
     * 是否默认（0=是,1=否）
     */
    @Excel(name = "是否默认（0=是,1=否）", sort = 11)
    private String status;

    /**
     * 扩展字段
     */
    @Excel(name = "扩展字段", sort = 12)
    private String ext1;
}
